package com.ljx.model.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Company: 上海数惠系统技术有限公司
 * Department: 数据中心：研发二部
 * Date: 2021/04/11 11:06
 *
 * @Author: Ljxpa
 * Email: lujx@dist.com.cn
 * Desc:
 */
@Entity
@Table(name = "student")
@Data
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","fieldHandler"})
public class Student implements Serializable {

	@Id
	// @SequenceGenerator(name = "ID_SEQ", sequenceName = "SEQ_STUDENT", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "Id", nullable = false)
	@ApiModelProperty(value = "ID")
	private Integer id;

	@Column(name = "NAME", nullable = false)
	@ApiModelProperty(value = "名字")
	private String name;

	@Column(name = "CARDNUM", nullable = false)
	@ApiModelProperty(value = "学生号")
	private String cardNum;
}
